import request from "@/utils/request";

// 主人寻宠
export function fetchList(params) {
  return request({
    url: "/find_pets/index",
    method: "get",
    params
  });
}

export function exportExcel(params) {
  return request({
    url: "/find_pets/export",
    method: "get",
    params
  });
}

export function getInfo(params) {
  return request({
    url: "/find_pets/read",
    method: "get",
    params
  });
}

export function setIsShow(params) {
  return request({
    url: "/find_pets/set_is_show",
    method: "get",
    params
  });
}

export function remove(params) {
  return request({
    url: "/find_pets/delete",
    method: "get",
    params
  });
}

export function update(data) {
  return request({
    url: "/find_pets/update",
    method: "post",
    data
  });
}

export function getComments(params) {
  return request({
    url: "/find_pets/comments",
    method: "get",
    params
  });
}
